﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;

namespace Windvoice.Blog
{
    [ActiveRecord("Comment")]
    public partial class Comment : ActiveRecordBase<Comment>
    {
        [PrimaryKey(PrimaryKeyType.Identity, "ID")]
        public int ID
        {
            get;
            set;
        }

        [Property]
        public int ArticleID
        {
            get;
            set;
        }

        [Property]
        public int UserID
        {
            get;
            set;
        }

        [Property]
        public string Content
        {
            get;
            set;
        }

        [Property]
        public string IP
        {
            get;
            set;
        }

        [Property]
        public DateTime CreateTime
        {
            get;
            set;
        }

        [Property]
        public string Reply
        {
            get;
            set;
        }

        [Property]
        public DateTime ReplyTime
        {
            get;
            set;
        }
    }
}